version "13.3-20140303.0 [builder]";
dynamic-profiles {
    PPPoE-PROFILE-1 {
        interfaces {
            pp0 {
                unit "$junos-interface-unit" {
                    ppp-options {
                        chap;
                    }
                    pppoe-options {
                        underlying-interface "$junos-underlying-interface";
                        server;
                    }
                    keepalives interval 10;
                    family inet {
                        unnumbered-address lo0.0;
                    }
                    family inet6 {
                        address $junos-ipv6-address;
                    }
                }
            }
        }
        protocols {
            router-advertisement {
                interface "$junos-interface-name" {
                    max-advertisement-interval 60;
                    min-advertisement-interval 10;
                    default-lifetime 300;
                    prefix $junos-ipv6-ndra-prefix;
                }
            }
        }
    }
    VLAN-DEMUX-PROFILE {
        interfaces {
            demux0 {
                unit "$junos-interface-unit" {
                    vlan-id "$junos-vlan-id";
                    demux-options {
                        underlying-interface "$junos-underlying-interface";
                    }
                    family pppoe {
                        access-concentrator mx104;
                        duplicate-protection;
                        dynamic-profile PPPoE-PROFILE-1;
                        max-sessions 100;
                    }
                }
            }
        }
    }
}
system {
    host-name mx104;
    root-authentication {
        encrypted-password "$1$pP2rb3nt$IlSQFrxYsDbyp10XgzEuW/"; ## SECRET-DATA
    }
    dynamic-profile-options {
        versioning;
    }
    login {
        user warrior {
            uid 2002;
            class super-user;
            authentication {
                encrypted-password "$1$i8a5NCp3$O6avDk29rTGcVohqVxGNj0"; ## SECRET-DATA
            }
        }
    }
    services {
        telnet;
    }
    syslog {
        user * {
            any emergency;
        }
        file messages {
            any notice;
            authorization info;
            interactive-commands none;
        }
        file interactive-commands {
            interactive-commands any;
        }
    }
}
chassis {
    aggregated-devices {
        ethernet {
            device-count 1;
        }
    }
    network-services enhanced-ip;
}
access-profile Access-Profile-1;
interfaces {
    xe-2/0/0 {
        description "-- EX4200";
        gigether-options {
            802.3ad ae0;
        }
    }
    ae0 {
        description "-- EX4200 ae0";
        flexible-vlan-tagging;
        auto-configure {
            vlan-ranges {
                dynamic-profile VLAN-DEMUX-PROFILE {
                    accept pppoe;
                    ranges {
                        11-99;
                    }
                }
            }
            remove-when-no-subscribers;
        }
        mtu 9192;
        encapsulation flexible-ethernet-services;
        aggregated-ether-options {
            no-flow-control;
            lacp {
                active;
                periodic fast;
            }
        }
        unit 10 {
            description "-- MGMT";
            vlan-id 10;
            family inet {
                address 10.10.10.1/24;
            }
        }
    }
    lo0 {
        description "-- loopback";
        unit 0 {
            family inet {
                address 1.1.1.20/32 {
                    primary;
                    preferred;
                }
            }
            family inet6 {
                address 2001::20/128 {
                    primary;
                    preferred;
                }
            }
        }
    }
}
access {
    profile Access-Profile-1 {
        accounting-order radius;
        authentication-order radius;
        domain-name-server-inet {
            8.8.8.8;
        }
        radius {
            authentication-server 10.10.10.64;
            accounting-server 10.10.10.64;
            options {
                nas-port-id-delimiter :;
                calling-station-id-delimiter :;
                calling-station-id-format {
                    nas-identifier;
                    interface-description;
                }
                accounting-session-id-format decimal;
                revert-interval 60;
                client-authentication-algorithm round-robin;
                client-accounting-algorithm direct;
                coa-dynamic-variable-validation;
            }
        }
        session-options {
            client-idle-timeout 60;
            client-session-timeout 1440;
        }
        radius-server {
            10.10.10.64 {
                secret "$9$45Zi.Qz6AtOQFCu0Byr"; ## SECRET-DATA
                timeout 2;
                retry 3;
                max-outstanding-requests 200;
                source-address 10.10.10.1;
            }
        }
        accounting {
            order radius;
            immediate-update;
            coa-immediate-update;
            update-interval 10;
            statistics volume-time;
            send-acct-status-on-config-change;
        }
    }
    address-assignment {
        neighbor-discovery-router-advertisement ipv6-NDRA-pool;
        pool ipv6-NDRA-pool {
            family inet6 {
                prefix 2001:aaaa::/32;
                range R2 prefix-length 64;
            }
        }
        pool ipv4-pool {
            family inet {
                network 192.168.0.0/24;
                range R1 {
                    low 192.168.0.101;
                    high 192.168.0.200;
                }
            }
        }
    }
    address-protection;
    report-interface-descriptions;
    radius-options {
        request-rate 500;
    }
}
